{% load ts_extras %}
<div id="controls">
    {% if request.session.ts_program %}
    <h2><a href="{% url ts.views.viewTP request.session.ts_program.tp.name %}" title="{{request.session.ts_program.tp.name}}"> {{request.session.ts_program.tp.name}}</a> </h2>
        <ul>
            <li><a class="link-button" href="{% url ts.views.addFactor request.session.ts_program.tp.name|escapeUrl %}">Add a new factor</a></li>
            <li><a class="link-button" href="{% url ts.views.addGene request.session.ts_program.tp.name|escapeUrl %}">Add a new gene</a></li>
            <li><a class="link-button" href="{% url ts.views.codeTranssys request.session.ts_program.tp.name|escapeUrl %}"> Code transsys</a></li>
        </ul>
        <ul>
            <li><a class="link-button" href="{% url ts.views.createTranssysInstance request.session.ts_program.tp.name|escapeUrl %}"> Play with transsys instance</a></li>
            <li><a class="link-button" href="{% url ts.views.identifyAttractors request.session.ts_program.tp.name|escapeUrl %}"> Identify attractors</a></li>
        </ul>
    {% endif %}
</div>